home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 4 / The 640 Meg Shareware Studio CD-ROM Volume IV (Data Express)(1994).ISO / clang / cenvid.zip / ISDAY_2.BAT < prev    next >
DOS Batch File  |  1993-03-18  |  497b  |  11 lines

  1. @echo OFF
  2. REM IsDay_2.bat - This is like IsDay_1.bat (Set ErrorLevel 1 if it is requested day
  3. REM               of the week, and ErrorLeve 0 if not), but accomplishes this in
  4. REM               only one quick call to CENVI.  Unlike IsDay_1.bat, this does
  5. REM               no error checking and provides no help.
  6.  
  7. cenvi  day="%1"  day[3]=0    return( strstr(strupr(ctime(time())),strupr(day)) ? 1 : 0 )
  8.  
  9. if ErrorLevel 1 ECHO Yes, today is %1
  10. if not ErrorLevel 1 ECHO No, today is not %1
  11.